package com.huaju.enity;

import java.util.Date;

public class AllListBean implements Comparable<AllListBean> {
	
	private Date time;
	private String time2;
	private short success;
	public String getTime2() {
		return time2;
	}
	public void setTime2(String time2) {
		this.time2 = time2;
	}


	private Integer type;
	private String money;
	private Integer id;
	private String desc;
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getMoney() {
		return money;
	}
	public void setMoney(String money) {
		this.money = money;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	@Override
	public int compareTo(AllListBean o) {
		if(this.getTime().getTime()>o.getTime().getTime()){
			return -1;
		}else
		if(this.getTime().getTime()==o.getTime().getTime()){
			return 0;
		}
		else{
			return 1;
		}//先按照年龄排序

	}
	public short getSuccess() {
		return success;
	}
	public void setSuccess(short success) {
		this.success = success;
	}
	
	
	
	

}
